package com.amc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.amc.dao.ICommentDao;
import com.amc.dto.CommentView;
import com.amc.service.ICommentService;


@Service(value="commentService")
public class CommentServiceImpl implements ICommentService {
	
	private ICommentDao dao;
	
	@Resource
	public void setDao(ICommentDao dao) {
		this.dao = dao;
	}
	
	@Override
	@Transactional
	public boolean uploadComment(CommentView comment) {
		
		return dao.uploadComment(comment);
	}

	@Override
	@Transactional
	public List<CommentView> showComment(String merchantId) {
		return dao.showComment(merchantId);
	}

}
